<template>
	<!-- <image :src="'../../static/icon/'+icon+'.svg'" :style="{
			width:width+'rpx',
			height:(height||width)+'rpx'
			}" /> -->
	<image :src="'https://file.dgyxy.com/resource/icon/'+icon+'.svg'" :style="{
			width:width+'rpx',
			height:(height||width)+'rpx',
			borderRadius:borderRadius+'rpx'
			}" />
</template>

<script>
	export default {
		name: "svg-icon",
		props: {
			icon: {
				type: String,
				default: ''
			},
			width: {
				type: Number,
				default: 40
			},
			height: {
				type: Number,
				default: null
			},
			borderRadius: {
				type: Number,
				default: null
			}
		},
		onLoad() {
			console.log(1111);
		}
	}
</script>

<style>

</style>